//
//  
//
//  Created by admin on 2017年8月11日.
//  Copyright © 2017年 __MyCompanyName__. All rights reserved.
//

#import "LCTabBarController.h"
#import "UITabBarController+LCAddition.h"
#import "LCNavigationController.h"
#import "LCTabBar.h"

@interface LCTabBarController ()

@end

@implementation LCTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
//    LCTabBar *myTabBar = [[LCTabBar alloc] init];
//    [self setValue:myTabBar forKey:@"tabBar"];
    
    //tab setup
    [self addChildViewControllers];
    
}
-(void)addChildViewControllers{
    //首页
    UIViewController *homeNavController = [UITabBarController lc_addChildControllerWithSbName:@"HomePage" title:@"头条" imageName:@"nav1"];
    [self addChildViewController:homeNavController];
    
    //"视频"
    UIViewController *videoNavController = [UITabBarController lc_addChildControllerWithSbName:@"Video" title:@"视频"  imageName:@"nav2"];
    [self addChildViewController:videoNavController];
    
    //我的
    UIViewController *mineNavController = [UITabBarController lc_addChildControllerWithSbName:@"Mine" title:@"我的" imageName:@"nav3"];
    [self addChildViewController:mineNavController];
    
}





@end
